<html xmlns="http://www.w3.org/1999/xhtml" xmlns:c="http://java.sun.com/jstl/core"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:v="http://corejsf.com/validator">

<f:view>
<f:loadBundle var="text" basename="#{gdbgForm.bundleName}"/>
    <head>
        <title>#{text['gdbgDetail.title']}</title>
        <meta name="heading" content="#{text['gdbgDetail.heading']}"/>
        <style type="text/css">
            .jscalendar-DB-div-style {
                position: absolute;
                margin-top: -120px;
                margin-left: -508px;
            }
    </style>
    </head>
<body id="gdbgForm">

<h:form id="gdbgForm" onsubmit="return validateGdbgForm(this)">
<h:inputHidden value="#{gdbgForm.gdbg.id}" id="id"/>
<h:inputHidden value="#{gdbgForm.gdbg.version}" id="version"/>
<h:panelGroup styleClass="buttonBar bottom">
      <h:commandButton value="#{text['button.save']}" action="#{gdbgForm.save}" id="save" styleClass="button"/>
      <c:if test="${not empty gdbgForm.gdbg.id}">
      <h:commandButton value="#{text['button.delete']}" action="#{gdbgForm.delete}"
            id="delete" styleClass="button" onclick="bCancel=true; return confirmDelete('Gdbg')"/>
      </c:if>

      <h:commandButton value="#{text['button.cancel']}" action="cancel" immediate="true"
            id="cancel" styleClass="button" onclick="bCancel=true"/>
</h:panelGroup>

<h:panelGrid columns="3">
    <h:outputLabel styleClass="desc" for="gdmc" value="#{text['gdbg.gdmc']}"/>
    <t:message for="gdmc" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="gdmc" value="#{gdbgForm.gdbg.gdmc}" required="false" maxlength="50">
    </h:inputText>
    
     <h:outputLabel styleClass="desc" for="gddm" value="#{text['gdbg.gddm']}"/>
    <t:message for="gddm" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="gddm" value="#{gdbgForm.gdbg.gddm}" required="false" maxlength="50">
    </h:inputText>
    
     <h:outputLabel styleClass="desc" for="cze" value="#{text['gdbg.cze']}"/>
    <t:message for="cze" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="cze" value="#{gdbgForm.gdbg.cze}" required="false" maxlength="20">
    </h:inputText>
    
    <h:outputLabel styleClass="desc" for="zze" value="#{text['gdbg.zze']}"/>
    <t:message for="zze" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="zze" value="#{gdbgForm.gdbg.zze}" required="false" maxlength="20">
    </h:inputText>
    <!-- 
    <h:outputLabel styleClass="desc" for="id" value="#{text['gdbg.id']}"/>
    <t:message for="id" styleClass="fieldError"/> 
    <h:inputText styleClass="text medium" id="id" value="#{gdbgForm.gdbg.id}" required="true">
        <v:commonsValidator type="required" arg="#{text['gdbg.id']}"/>
    </h:inputText>

    
    <h:outputLabel styleClass="desc" for="bgsj" value="#{text['gdbg.bgsj']}"/>
    <t:message for="bgsj" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="bgsj" value="#{gdbgForm.gdbg.bgsj}" required="false" maxlength="20">
    </h:inputText>
      
    <h:outputLabel styleClass="desc" for="operation" value="#{text['gdbg.operation']}"/>
    <t:message for="operation" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="operation" value="#{gdbgForm.gdbg.operation}" required="false" maxlength="20">
    </h:inputText>
      
    <h:outputLabel styleClass="desc" for="optdate" value="#{text['gdbg.optdate']}"/>
    <t:message for="optdate" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="optdate" value="#{gdbgForm.gdbg.optdate}" required="false" maxlength="23">
    </h:inputText>
    
    
    <h:outputLabel styleClass="desc" for="username" value="#{text['gdbg.username']}"/>
    <t:message for="username" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="username" value="#{gdbgForm.gdbg.username}" required="false" maxlength="50">
    </h:inputText>
    
    
    <h:outputLabel styleClass="desc" for="xh" value="#{text['gdbg.xh']}"/>
    <t:message for="xh" styleClass="fieldError"/>
    <h:inputText styleClass="text medium" id="xh" value="#{gdbgForm.gdbg.xh}" required="false" maxlength="255">
    </h:inputText>
     --> 
</h:panelGrid>
</h:form>

<v:validatorScript functionName="validateGdbgForm"/>

<script type="text/javascript">
    //Form.focusFirstElement($('gdbgForm'));
    highlightFormElements();
</script>

</body>
</f:view>
</html>
